import Cookies from 'js-cookie';

export function getToken(TokenKey: string) {
    return Cookies.get(TokenKey) || '';
}

export function setToken(TokenKey: string, token: string) {
    return Cookies.set(TokenKey, token, { expires: 365 * 10 });
}

export function removeToken(TokenKey: string) {
    return Cookies.remove(TokenKey);
}
